package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.mall.product.entity.AttrEntity;
import com.mall.product.entity.CategoryEntity;
import com.mall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * ��Ʒ��������
 *
 * @author yjv
 * @email 111111@163.com
 * @date 2024-08-04 00:42:44
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询结果转为tree类型
     * @param
     * @return
     */
    List<CategoryEntity> queryPageWitTree(Map<String, Object> params);

    /**
     * 修改状态码删除
     * @param list
     */
    void removeCategoryByIds(List<Long> list);

    Long[] findCateLogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevelCategory();

    Map<String, List<Catalog2VO>> getCatalog2JSON();
}

